//
//  Collections.swift
//  learn-ios
//
//  Created by Dong on 2022/4/5.
//

import SwiftUI

struct Collections: View {
    var body: some View {
        VStack {
            List {
                NavigationLink {
                    UseList()
                } label: {
                    Text("列表")
                }

                NavigationLink {
                    UseForm()
                } label: {
                    Text("表单")
                }

                NavigationLink {
                    UseGroup()
                } label: {
                    Text("组")
                }

                NavigationLink {
                    UseScrollView()
                } label: {
                    Text("滚动")
                }

                NavigationLink {
                    UseScrollViewReader()
                } label: {
                    Text("滚动代理")
                }
            }
        }
    }
}

struct Collections_Previews: PreviewProvider {
    static var previews: some View {
        NavigationView {
            Collections()
        }
    }
}
